package com.haodf.skeletonscreen

import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.view.View
import android.widget.TextView

class MainActivity : Activity() {
    private val mClickTv: TextView by lazy(LazyThreadSafetyMode.NONE) { findViewById<TextView>(R.id.click_tv) }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main_1)
//        mSkeletonSl.addView(SkeletonView(this))
//        mSkeletonSl.addView(SkeletonView(this).apply { text = "hahahaha" })
        mClickTv.setOnClickListener {
            startActivity(Intent(this, SecondActivity::class.java))
//            (findViewById<View>(android.R.id.statusBarBackground).parent as View ).visibility = View.GONE
        }
    }
}